package com.jiangcheng.demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;


@Configuration
public class WebSocketConfig {
    // 打成war包需要注释掉
    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        System.out.println("注入了带有ServerEndpoint的类");
        return new ServerEndpointExporter();
    }
}


